<template>
  <div class="swipers">
    <swiper :options="swiperOption">
      <swiper-slide v-for="(item,index) in imgs" :key="index">
        <img :src="item" alt="">
      </swiper-slide>
      <div class="swiper-pagination"  slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
  export default {
    name:"PSwiper",
    data(){
      return{
        swiperOption:{
          pagination: {
            el: '.swiper-pagination'
        },
          autoplay:true,
          loop:true
        },
        imgs:[
          require("../assets/pimages/banner.jpg"),
          require("../assets/pimages/banner02.jpg"),
          require("../assets/pimages/banner03.jpg")
        ],
      }
    }
  }
</script>

<style scoped>
.swipers{
  width: 100%;
  height: 3.4rem; 
}

.musicswiper img{
  width: 100%;
  box-sizing: border-box;
}
</style>